<?php
/**
 * User: 苏翔
 * Date: 2024/8/16 14:07
 */

namespace App\Dao;

use App\Model\Model;

class BaseDao
{
    public function __call(string $name, array $arguments)
    {
        $model = $this->model ?? null;

        return $model ? call_user_func_array([$this->model, $name], $arguments) : null;
    }

    function getModel() :Model
    {
        return $this->model;
    }
}